<template>
  <!-- 图例 -->
  <div class="metric-legend noselect qs-legend">
    <span style="width:12.5%">NDVI</span><span style="width: 12.5%">0</span><span style="width: 12.5%">0.15</span><span
    style="width: 12.5%">0.30</span><span style="width: 12.5%">0.45</span><span style="width: 12.5%">0.60</span><span
    style="width: 12.5%">0.75</span><span style="width: 12.5%">1.00</span>
  </div>
</template>

<script>
export default {
  name: 'NdviLegend'
}
</script>

<style scoped>
  .metric-legend {
    background-color: #7c7c7c;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 0 4px 0 black;
  }

  .metric-legend span {
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle
  }

  .noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
  }

  .qs-legend{
    color: white;
    background: rgba(0, 0, 0, 0)
    linear-gradient(to right, rgb(98, 113, 184),
      rgb(98, 113, 184),
      rgb(98, 113, 184),
      rgb(98, 113, 184),
      rgb(61, 110, 163),
      rgb(74, 148, 170),
      rgb(74, 146, 148),
      rgb(77, 142, 124),
      rgb(76, 164, 76),
      rgb(103, 164, 54),
      rgb(162, 135, 64),
      rgb(162, 109, 92),
      rgb(141, 63, 92),
      rgb(151, 75, 145),
      rgb(95, 100, 160),
      rgb(91, 136, 161),
      rgb(91, 136, 161)) repeat scroll 0% 0%;
  }
</style>
